Skip to content

feat(typing): preserve adapter promise types - #19

Closed
simPod wants to merge 1 commit into
masterfrom
fix/generic-promise-types
Closed

feat(typing): preserve adapter promise types#19
simPod wants to merge 1 commit into
masterfrom
fix/generic-promise-types

Conversation

@simPod

@simPod simPod commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Summary:

  • make DataLoaderInterface generic over its adapter promise type
  • propagate the type through DataLoader construction, loading, and adapter access

Known limitation:

  • a CacheMap can be shared across different adapters, so a cache hit can return a foreign promise implementation. The generic contract assumes cache maps are not shared across incompatible adapters.

@simPod simPod closed this Aug 18, 2026
@simPod
simPod deleted the fix/generic-promise-types branch August 18, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant